package com.csx.micrometer.common.context;

import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.Metrics;

/**
 * @author cuisongxu
 * @date 2022/11/20 19:44
 */
public class MonitorContext {

    private static final MonitorContext instance = new MonitorContext();

    public static MonitorContext get() {
        return instance;
    }

    public MeterRegistry getMeterRegistry() {
        return Metrics.globalRegistry;
    }
}
